import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
import utils.Global;

public class Main extends Application {

    @Override
    public void start(Stage primaryStage) throws Exception{
        Global.init();
//        FXMLLoader fxmlLoader = new FXMLLoader();
//        fxmlLoader.setLocation(getClass().getResource("/xml/main.fxml"));
//        fxmlLoader.setBuilderFactory(new JavaFXBuilderFactory());
//        Parent root = (Parent) fxmlLoader.load();
//        Controller.controller = fxmlLoader.getController();

        Parent root = FXMLLoader.load(getClass().getResource("/xml/main.fxml"));
        primaryStage.setTitle("svn packing");
        primaryStage.setScene(new Scene(root, 600, 426));
        primaryStage.show();
    }


    public static void main(String[] args) {
        launch(args);
    }
}
